package com.springcloud.feignconsumer.feign;

//import com.springcloud.feignconsumer.config.LoadBalancerConfig;
import com.springcloud.rule.TimeRule;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

// config 里面指定负载均衡算法
//@FeignClient(value = "service-hi",configuration = LoadBalancerConfig.class)
@FeignClient(value = "service-hi")
public interface SayHiFeign {
    /**
     *  外部调用
     * @return
     */
    @RequestMapping(value = "/hi",method = RequestMethod.GET)
    String sayHiFromClientOne();
}
